import { createApp } from 'vue'
const app = createApp({})

export default function (app) {

    /**
     * 输入框获得焦点
     * use: v-focus
     */
    app.directive('focus', {
        mounted(el) {
            el.focus()
        }
    })
}